package com.cloudfun.campusshare.repo;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.cloudfun.campusshare.entity.FeedbackEntity;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by CodeGenerator on 2020/05/27
 */
public interface FeedbackRepo extends PagingAndSortingRepository<FeedbackEntity, String>, JpaSpecificationExecutor<FeedbackEntity> {

    List<FeedbackEntity> findAllByCreatorId(String id);

    List<FeedbackEntity> findAllByIdInOrderByCreateTimeDesc(List<String> ids);

    List<FeedbackEntity> findAll();
}